package com.newtouch.avmarketing.mgr.modules.avmarkrting.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Entity
@Table(schema = "avmarketing",name = "sale_channel")
public class SaleChannel implements Serializable {
    @Id
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键",example = "1",hidden = true)
    @Column(name="id")
    private Long id;

    @ApiModelProperty(value = "销售渠道代码")
    @Column(name="sales_code")
    private String salesCode;

    @ApiModelProperty(value = "销售渠道名称")
    @Column(name="sales_name")
    private String salesName;
}
